package com.example.demo.service.impl;

import com.example.demo.enity.Bill;
import com.example.demo.enity.Provider;
import com.example.demo.mapper.ProviderListMapper;
import com.example.demo.service.ProviderListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class ProviderListServiceimpl implements ProviderListService {


    @Autowired
    ProviderListMapper providerListMapper;

    @Override
    public List<Provider> getList(Object object) {
        List<Provider> providerList = providerListMapper.getProviderListByWhere((Provider) object);
        return providerList;
    }

    @Override
    public int addObject(Object object) {
        return providerListMapper.providerAddMapper((Provider) object);
    }


    @Override
    public int updateObject(Object object) {
        return providerListMapper.updateProviderByProvider((Provider) object);
    }


    @Override
    public Provider findById(Integer code) {
        return providerListMapper.findById(code);
    }


    @Override
    public int remove(Integer code) {
        return providerListMapper.remove(code);
    }


}
